package com.guigu.controller;

import com.guigu.pojo.MenuRole;
import com.guigu.service.MenuRoleService;
import com.guigu.service.MenusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@CrossOrigin
public class MenuRoleController {

    @Autowired
    MenuRoleService menuRoleService;

        //授权
        @RequestMapping("authoritySystem.action")
        public Map authoritySystem(MenuRole menuRole){

        System.out.println(menuRole);
            return menuRoleService.authoritySystem(menuRole);
        }
}
